<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<html>

	<head>
		<title>Recording :: Display</title>
		<meta name="object" content="recording">
	</head>

	<body>

		<div id="apphead">
			<h2>Recording :: <em>Display</em></h2>
		</div>

		<div id="projecthome" class="app">

			<div id="axial" class="h3">
				<h3>Info</h3>
				<div class="axial">
					<table border="0" cellspacing="2" cellpadding="3">
						<tr>
							<th>Key</th>
							<td>${recording.key}</td>
						</tr>
						<tr>
							<th>UUID</th>
							<td>${recording.uuid}</td>
						</tr>
						<tr>
							<th>Title</th>
							<td>${recording.title}</td>
						</tr>
						<tr>
							<th>Artist</th>
							<td><a href="<c:url value="artistDisplay.action?uuid=${recording.artist.uuid}"/>">${recording.artist.name}</a></td>
						</tr>
						<tr>
							<th>Type</th>
							<td>${recording.type}</td>
						</tr>
						<tr>
							<th>Year</th>
							<td>${recording.year}</td>
						</tr>
						<tr>
							<th>Created</th>
							<td>${recording.created}</td>
						</tr>
						<tr>
							<th>Cover</th>
							<td>
								<c:if test="${recording.cover != null}">
									<img src="<c:url value="recordingCoverDisplay.action?uuid=${recording.uuid}"/>"/>
									<br/>
								</c:if>
								<a href="<c:url value="recordingAddCover.action?uuid=${recording.uuid}"/>">Upload Cover</a>
							</td>
						</tr>
						<tr>
							<th>Description</th>
							<td>
								<pre style="white-space:pre-wrap;">${recording.description.value}</pre>
							</td>
						</tr>
					</table>
				</div>
			</div>
			
		</div>

	</body>

</html>